<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <ol>
            {{#student}}
            <li>
                学生{{item.name}}的爱好是
                <ol>
                    {{#items.hobbies}}
                    <li>{{.}}</li>
                    {{/item.hobbies}}
                </ol>
            </li>
            {{/students}}
        </ol>
    </div>
    <script>
        let a= `你好啊,{{我是abc}}`
        
        let pos = 0;
        let temp = a;
        let tail = '';
        let stopTag = `{{`;

        function scanner(temp,stopTag){
            let initPost = pos;
            tail = temp;
            while(tail.indexOf(stopTag) != 0){
                pos += 1;
                tail = temp.substr(pos);
            }
                return temp.substr(initPost,pos)
        }
        let word =   scanner(temp,stopTag);
</script>
</body>
</html>